<!DOCTYPE html>
<html lang="en">

<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
    <script src="./zuoye10.js"></script>
</head>

<body>
    <h1>GET</h1>
    <form name="form" action="http://127.0.0.1:8080/login" method="get">
        <input id="username" type="text" name="username" value="666" placeholder="请输入" /><br>
        <input id="password" type="password" name="password" /><br>
        <input id="s1" type="checkbox">男
        <input id="s2" type="checkbox">女<br>
        <select id="a" >
            <option value="001">杭州</option>
            <option value="002">宁波</option>
            <option value="003">温州</option>
        </select><br><br>
        <button type="submit">提交</button>
    </form>
    <h2>POST</h2>
    <form id="postForm" action="http://127.0.0.1:8080/login" method="post">
        <input name="name" placeholder="姓名" required /><br>
        <input name="age"  placeholder="年龄" required /><br>
        <button type="submit">POST 提交</button>
    </form>
</body>

</html>